package com.cloud.code.牛客网;

import java.util.Scanner;

public class Test1 {

    public static void main(String[] args) {

        Scanner scanner = new Scanner(System.in);
        String line = scanner.nextLine();
        String flag = "aeuio";

        String[] strings = line.split(" ");
        StringBuffer stringBuffer = new StringBuffer();
        for (String str : strings) {
            char[] chars1 = flag.toCharArray();
            char[] chars2 = str.toCharArray();
            boolean flags = true;
            for (char tem : chars1) {
                for (int i = 0; i < chars2.length; i++) {
                    if (tem == chars2[i]) {
                        chars2[i] = '*';
                        flags = false;
                    }
                }
            }
            if (flags) {
                stringBuffer.append(new StringBuffer(str).reverse());
            } else {
                stringBuffer.append(chars2);
            }
            stringBuffer.append(" ");
        }
        System.out.println(stringBuffer);
    }
}
